Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#753): Fix The Problem With The First Digit Naming #755

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

volodya-lombrozo
Copy link
Member

@volodya-lombrozo volodya-lombrozo commented Oct 14, 2024

In this PR I fixed the name genearation strategy for sequences of values. Now all the randomly generated names will start with a letter.

Closes: #753.
History:


PR-Codex overview

This PR introduces a new feature to generate random names for DirectivesValues, ensuring they do not start with a digit. It also adds a test case to validate this behavior.

Detailed summary

  • Added a regex pattern DIGITS in DirectivesValues to identify leading digits.
  • Implemented a randomName() method in DirectivesValues to generate valid random names.
  • Created a new test method generatesRandomNameWithoutFirstDigit() in DirectivesValuesTest to validate the random name generation.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@volodya-lombrozo
Copy link
Member Author

@yegor256 Would you mind looking at this PR, please?

Copy link
Member

@yegor256 yegor256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@volodya-lombrozo
Copy link
Member Author

@rultor merge

@rultor
Copy link
Contributor

rultor commented Oct 14, 2024

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here.

@rultor rultor merged commit 51101a5 into objectionary:master Oct 14, 2024
11 checks passed
@rultor
Copy link
Contributor

rultor commented Oct 14, 2024

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 8min).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

broken name of attribute (starts with a digit)
3 participants